package com.chenzhengrong.demospringboot.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 党组织架构表
 * @TableName party_organization
 */
@TableName(value ="party_organization")
@Data
public class PartyOrganization implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 父id
     */
    @TableField(value = "pid")
    private Integer pid;

    /**
     * 所属党（工）委
     */
    @TableField(value = "pname")
    private String pname;

    /**
     * 等级
     */
    @TableField(value = "grade")
    private Integer grade;

    /**
     * 党组织名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 位置坐标
     */
    @TableField(value = "coord")
    private String coord;

    /**
     * 经度
     */
    @TableField(value = "lng")
    private String lng;

    /**
     * 纬度
     */
    @TableField(value = "lat")
    private String lat;

    /**
     * 党员总数
     */
    @TableField(value = "party_member_count")
    private Integer partyMemberCount;

    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}